home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
UpTime Volume 1 #1
/
utv1n1s1.d64
/
nom de plume
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-28
|
4KB
|
190 lines
1 rem pgm name-- nom de plume
2 rem pgm author-- dave hammond
3 :
4 rem (c)1987 uptime magazine
5 rem (c)1987 softdisk publishing, inc.
6 :
9 uptime=(8*4096)+4
10 poke 53280,6: poke53281,6: print"[147]"chr$(8)chr$(14)
15 sp$=" "
20 close2:close15
25 :
30 gosub 2000: rem *** print screen ***
35 :
80 gosub 1000: rem *** print instructions ***
125 :
130 gosub 9000: rem *** get a keypress ***
135 if k=140 then sys uptime
140 if k<>13 then goto 130
145 :
150 gosub 1500: rem *** get current disk name ***
155 if en<>0 then 500
160 if n$="[213]p[212]ime [214]1 [206]1" then gosub 8500: goto 130
165 :
170 gosub 8000: rem *** change this disk? ***
175 :
180 gosub 9000: rem *** get a keypress ***
190 if k=140 then sys uptime
200 if (k$="n") or (k$="[206]") then close15:goto 80
210 if (k$<>"y") and (k$<>"[217]") then 180
215 :
220 print" "
225 print"[145][206]ew disk name:"
230 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][145]"
240 print""
250 print" "
260 print"[197]nter the new disk name"
270 gosub 7000: rem *** get new disk name ***
280 if f$="" then goto 80
285 :
290 gosub 6000: rem *** write new disk title ***
300 if en<>0 then 500
305 :
310 print"[196]isk name has been rewritten"
320 print"[210]ename another disk?"
330 print"[208]ress [217][159] or [206][159] to select "
340 gosub 9000: rem *** get a keypress ***
350 if (k=140) or (k$="n") or (k$="[206]") then sys uptime
360 if (k$<>"y") and (k$<>"[217]") then 340
370 goto 80
500 gosub 9100: rem *** clear text area
505 :
510 print""
520 t=int((40-len(em$))/2)
530 printspc(t)""em$
540 gosub 2100
550 get k$: if k$=""then 550
560 if k$=chr$(13) then goto 80
570 sys uptime
1000 gosub 9100: rem *** clear instruction area ***
1005 print"[210]emove the [213][208][212][201][205][197][159] disk from the drive"
1010 print"and"
1020 print"[201]nsert the disk you wish to rename"
1025 gosub 2100: rem *** include f8 & <cr> ***
1030 return
1497 :
1498 rem *** get current disk name ***
1499 :
1500 open15,8,15,"i0"
1505 :
1520 gosub 9900: rem *** clear disk error channel ***
1530 if en<>0 then return
1535 :
1540 open2,8,2,"#0"
1545 print#15,"u1";2;0;18;0: rem *** read disk bam ***
1550 gosub 9900: rem *** clear disk error channel ***
1560 if en<>0 then return
1565 :
1570 print#15,"m-r"chr$(144)chr$(3)chr$(16): rem *** rqst to read disk name ***
1575 :
1580 n$=""
1590 for x=1 to 16
1600 get#15,by$: if by$=""then by$=chr$(0)
1610 if by$<>chr$(160) then n$=n$+by$
1620 next
1625 :
1630 close 2: close 15: return
1995 :
1996 rem **************
1997 rem print screen
1998 rem **************
1999 :
2000 print"[206]om de [208]lume"
2030 print"[159](a.k.a. [193] [196]isk by any other [206]ame )
2040 [129] x[178]1[164]17: [153]: [130]
2060 [153]"atnn (NULL)(NULL)(NULL)right$(NULL)valopen (NULL)agazine str$isk (NULL)tility"
2070 [153]"(c)1986 by (NULL)oftdisk (NULL)ublishing, right$nc."
2090 [142]
2095 [143] :
2096 [143] *****************
2097 [143] print f8 & <cr>
2098 [143] *****************
2099 [143] :
2100 [153]"";
2110 [129] x[178]1[164]18: [153]: [130]
2130 [153]"(NULL)ress (NULL)val(NULL)(NULL)(NULL)(NULL)open to continue"
2140 [153]"(NULL)ress asc8open to exit to (NULL)(NULL)(NULL)right$(NULL)valopen"
2150 [142]
5997 :
5998 [143] *** write new disk name ***
5999 :
6000 [159] 15,8,15: [159] 2,8,2,"#0"
6005 sp$[178][199](160)
6010 p$[178]sp$[170]sp$[170]sp$[170]sp$[170]sp$[170]sp$[170]sp$[170]sp$[170]sp$[170]sp$[170]sp$[170]sp$[170]sp$[170]sp$[170]sp$[170]sp$
6020 f$[178][200](f$[170]p$,16)
6030 [152]15,"m-w"[199](144)[199](3)[199](16)f$
6040 [152]15,"u2";2;0;18;0
6050 [141] 9900
6060 [139] en[179][177]0 [167] [142]
6065 [152]15,"i0"
6070 [160]2:[160]15
6080 [142]
6997 :
6998 [143] *** get new disk name ***
6999 :
7000 [153]"*cmd";
7010 t$[178]"":ct[178]0
7020 [159]1,0
7025 :
7030 [161]#1,k$: [139] k$[178]"" [167] 7030
7040 k[178][198](k$)
7050 [139] k[178]140 [167] [160]1: [160]2: [160]15: [158] uptime
7060 [139] k[178]13 [167] [137] 7200
7070 [139] k[179][177]20 [167] 7100
7080 [139] ct[179][177]0 [167] [153] " cmdcmd*cmd";: ct[178]ct[171]1: t$[178][200](t$,ct)
7090 [137] 7030
7095 :
7100 [139] (k[178]46) [176] (k[178]32) [167] [137] 7140
7110 [139] (k[177]47) [175] (k[179]58) [167] [137] 7140
7120 [139] (k[177]64) [175] (k[179]91) [167] [137] 7140
7130 [137] 7030
7140 [139] ct[178]16 [167] [137] 7030
7150 [153]k$"*cmd";: t$[178]t$[170]k$: ct[178]ct[170]1
7160 [137] 7030
7200 [153]" open": [139] ct[178]0 [167] t$[178]""
7210 ct[178]0: f$[178]t$: [160]1: [142]
7997 :
7998 [143] *** current disk name screen ***
7999 :
8000 [141] 9100: [143] *** clear the instruction area ***
8010 [153]"lenurrent disk's name:";
8020 [153]"tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(on"
8030 [153]"on";n$;"open"
8040 [153][166]2)"right$s this the disk you wish to rename?"
8050 [153]"(NULL)ress (NULL)open or (NULL)open to select"
8055 [141] 2140: [143] *** inc. <cr> ***
8060 [142]
8497 :
8498 [143] *** disk name is uptime ***
8499 :
8500 [153]""
8505 :
8510 [153]" on";
8520 [153]"right$nsert atn(NULL)(NULL)(NULL)left$val(NULL)open disk to rename"
8530 [142]
8997 :
8998 [143] *** get a keypress ***
8999 :
9000 [161] k$: [139] k$[178]"" [167] 9000
9010 k[178][198](k$)
9015 [139] (k[178]13) [176] (k[178]140) [167] [142]
9020 [139] (k$[178]"y") [176] (k$[178]"(NULL)") [167] [142]
9030 [139] (k$[178]"n") [176] (k$[178]"(NULL)") [167] [142]
9050 [137] 9000
9095 :
9096 [143] *****************
9097 [143] clear text area
9098 [143] *****************
9099 :
9100 [153]""
9110 [129] x[178]1 [164] 14
9120 [153]" "
9130 [130]
9140 [142]
9897 :
9898 [143] *** clear disk error channel ***
9899 :
9900 [132]15,en,em$,et,es
9910 [139] en[179][177]0 [167] [160]2: [160]15
9920 [142]